import { pageConfig } from '@/api/system';

export default () => {
	const formsColumn = [
			{
				name: 'likeConfigName',
				label: '配置名称'
			},
			{
				name: 'likeConfigKey',
				label: '参数键值'
			},
			{
				name: 'likeConfigName2',
				label: '配置名称'
			},
			{
				name: 'likeConfigKey2',
				label: '参数键值'
			},
			{
				name: 'likeConfigName3',
				label: '配置名称'
			},
			{
				name: 'likeConfigKey3',
				label: '参数键值'
			}
		],
		columns = [
			{
				title: '配置名称',
				dataIndex: 'configName'
			},
			{
				title: '参数键值',
				dataIndex: 'configKey'
			},
			{
				title: '参数值',
				dataIndex: 'configValue'
			},
			{
				title: '创建时间',
				dataIndex: 'createTime',
				width: 160
			},
			{
				title: '备注',
				dataIndex: 'remark'
			}
		],
		api = {
			page: pageConfig
		};

	return <MyFormTable className="flex-grow-1 p-10" formsColumn={formsColumn} columns={columns} api={api}></MyFormTable>;
};
